/*
 * @Copyright: 2023 - 2023 www.hoperun.com Inc. All rights reserved.
 */

package com.lifeservice.util;

import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/**
 * @author liu_yifeng
 * @function LifeServiceConstants
 * @date 2023/2/27 17:14
 */
public class LifeServiceConstants {
    private static final Map<Integer, String> WEEK_CONVERT_MAP = new LinkedHashMap<>();

    private static final List<String> DEFAULT_COLOR_LIST = new ArrayList<>();

    public static final String WORK_CLASS_BY_SCHEID_CACHE_PREFIX = "WORK_CLASS";

    public static final String SCHEDULE_CACHE_PREFIX = "SCHEDULE_CACHE_";

    public static final String WORK_CLASS_ID_CACHE_PREFIX = "WORK_CLASS_ID_";


    public static final String WORK_CLASS_STOCK_LOCK = "LOCK_STOCK";

    public static final String SUPPLIER_INFO_CACHE_PREFIX = "SUPPLIER_INFO_";

    public static final String SUPPLIER_DRAFT_CACHE_PREFIX = "SUPPLIER_DRAFT_";

    public static final String STAFF_INFO_CACHE_PREFIX = "STAFF_INFO_";

    public static final String WX_USER_MAP_KEY = "WX_USER_MAP_KEY";

    public static final String TAG_ALL = "0";


    /**
     * 订单状态 1 正常
     */
    public static final int ORDER_STATUS_NOMAL = 1;
    /**
     * 订单状态 0 已取消
     */
    public static final int ORDER_STATUS_CANCEL = 0;
    /**
     * 订单状态 2 已完成
     */
    public static final int ORDER_STATUS_COMPLETE = 2;
    /**
     * 订单状态 3 已删除
     */
    public static final int ORDER_STATUS_DELETED = 3;

    /**
     * 大厦状态1 正常
     */
    public static final int BUILD_STATUS_ONLINE = 1;

    /**
     * 大厦状态0 停用
     */
    public static final int BUILD_STATUS_OFFLINE = 0;

    static {
        WEEK_CONVERT_MAP.put(1, "周日");
        WEEK_CONVERT_MAP.put(2, "周一");
        WEEK_CONVERT_MAP.put(3, "周二");
        WEEK_CONVERT_MAP.put(4, "周三");
        WEEK_CONVERT_MAP.put(5, "周四");
        WEEK_CONVERT_MAP.put(6, "周五");
        WEEK_CONVERT_MAP.put(7, "周六");
        DEFAULT_COLOR_LIST.add("#CCFFFF");
        DEFAULT_COLOR_LIST.add("#CCFFCC");
        DEFAULT_COLOR_LIST.add("#CCFF66");
        DEFAULT_COLOR_LIST.add("#CCCCFF");
        DEFAULT_COLOR_LIST.add("#99CCFF");
        DEFAULT_COLOR_LIST.add("#FFFF00");
        DEFAULT_COLOR_LIST.add("#FF6633");
        DEFAULT_COLOR_LIST.add("#33FF33");
        DEFAULT_COLOR_LIST.add("#33CCFF");
        DEFAULT_COLOR_LIST.add("#FFCC33");
        DEFAULT_COLOR_LIST.add("#FF9933");
        DEFAULT_COLOR_LIST.add("#FF33FF");
        DEFAULT_COLOR_LIST.add("#993333");
        DEFAULT_COLOR_LIST.add("#00CC00");
        DEFAULT_COLOR_LIST.add("#006699");
        DEFAULT_COLOR_LIST.add("#006633");

    }

    public static Map<Integer, String> getWeekConvertMap() {
        return WEEK_CONVERT_MAP;
    }

    public static List<String> getDefaultColorList() {
        return DEFAULT_COLOR_LIST;
    }
}
